import { createElement } from "react";
import { Input, Select } from "antd";

import { getEnv } from "@/constants";


export const getFilterItems = () => {
  const { commonStatusList } = getEnv().globalConfig;
  return [
    {
      title: "岗位编码",
      name: "postCode",
      gridSpan: 2,
      component: createElement(Input),
    },
    {
      title: "岗位名称",
      name: "postName",
      gridSpan: 2,
      component: createElement(Input),
    },
    {
      title: "状态",
      name: "status",
      gridSpan: 1,
      component: createElement(Select, { style: { width: "100%" }, allowClear: true, options: commonStatusList })
    }
  ];
}
